package com.xiaojie.api.apollo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName Index
 * @Description 测试Apollo配置中心
 * @Author yan
 * @Date 2021/6/3 14:26
 * @Version 1.0
 **/
@RestController
public class Index {

//    @Value("${xiaojie.name:default}")
//    private String name;
//
//    @Value("${xiaojie.age:18}")
//    private String age;
//    @GetMapping("/apolloIndex")
//    public String apolloIndex(){
//        return "我的名字是"+name+"今年"+age+"岁";
//    }

}
